home *** CD-ROM | disk | FTP | other *** search
- Path: crl.crl.com!not-for-mail
- From: bobfry@crl.com (Robert Fry)
- Newsgroups: comp.lang.c
- Subject: Re: rand() source
- Date: 10 Apr 1996 09:38:27 -0700
- Organization: CRL Dialup Internet Access
- Message-ID: <4kgo63$i3i@crl.crl.com>
- References: <4kf88n$j5e@news.ualr.edu>
- NNTP-Posting-Host: crl.com
-
- luchini@hybrid.ualr.edu (Dr. Chris Luchini) writes:
-
- >does anyone have the source for the ran() or rand() functions?
- >I could really use it ASAP!
-
- For which compiler? Each compiler vendor is free to implement this in any
- way they feel fit, and many implementations are different. If what you
- need is an algorithm for generating random numbers, check out Knuth's
- "Art of Computer Programming" volume on Numerical methods. There have
- also been many articles on the subject, and I've heard the book
- "Numerical Recipes in C" recommended.
-
- Good luck.
- Bob
-